package cn.ms.doctor.Service;

import cn.ms.doctor.Entity.User;

import java.util.Map;

public interface UserService {
    User getUserByAccountAndPasswordAndRole(Map<String, Object> params);

    Boolean updateUserNameByUserId(Integer userId, String userName);

    boolean updateUserPasswordByUserId(Integer userId, String newPassword);

    Map<String, Object> getUsersBySelective(Map<String, Object> params);

    boolean updateRoleOrDeptOrName(Map<String, Object> params);

    boolean deleteUserByUserIdAndAccount(Map<String, Object> params);

    boolean addUser(Map<String, Object> params);
}
